package android.malware.ransonware.fragment;

import android.malware.ransonware.R;
import android.malware.ransonware.routine.RoutineRecover;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;




public class FragmentThree extends Fragment implements OnClickListener {

	Button recover;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = (View) inflater.inflate(R.layout.fragment_three, container,
				false);
		recover = (Button) v.findViewById(R.id.recover);
		recover.setOnClickListener(this);

		return v;
	}
	
	@Override
	public void onClick(View v) {
		new RoutineRecover(Environment.getExternalStorageDirectory()
				.getAbsolutePath() + "/DCIM/test").start();
	}

}